<?php
/**
 * RUBIK IT Solution & Development Co.ltd,
 *
 * PROJECT		: Auction
 * COPYRIGHT	: 2010
 * ------------------------------------------------------
 * 
 * DTO class of  #__auction table
 *
 * @author			generator <hoadn@rubik.com.vn>
 * @access			public
 * @package			dbo.AuctionDTO
 *
 * Created on	: September 13, 2010
 */

// Importer
RCoreImporter::cls( "dbo.AbstractDTO" );

/**
 * @name UserDTO
 * The data transfer object class for table: #__auctions
 */
class AuctionDTO extends AbstractDTO {

	// Keys
	var $auction_id		= "N*|||key";

	// Colums
	var $owner_id		= "N*";
	var $vehicle_id		= "N*";
	var $buy_now_price	= "S";
	var $starting_bid	= "N|0";
	var $min_bid		= "N|100";
	var $current_bid	= "N";
	var $start_date		= "DT|NOW";
	var $end_date		= "DT|NOW";
	var $time_zone		= "S|PST";
	var $status			= "S";
	var $fee_bid		= "N|0";
	var $special_note	= "S";
	var $currency_code	= "S|USD";
	var $city_id		= "N";
	var $state_id 		= "N";
	var $country_id 	= "N";
	var $zip	 		= "N";
	var $create_date	= "DT|NOW";
	var $deleted		= "B|0";
	
	
	/*
//	var $photo			= "S|files/images/memberphoto/logo-default.jpg";
//	var $user_type_id	= "N*";
	

//	var $type		= "B|1";
	
	var $username		 = "S*&u";
	var $password		 = "MD5*";
//	var $user_group_id	 = "N*|3";
//	var $user_group_code = "S*|user";
	var $user_group_id	 = "N*";
	var $user_group_code = "S*";
	var $email	 		 = "EM*";
//	var $email	 		 = "EM*&u";
	var $activate		 = "B|0";
	var $activation_code = "S";
	var $date_join		 = "D*|NOW";
	var $deleted		 = "B|0";	
*/	
	
	/**	
	 * Constructor	
	 *	
	 * @param string $where	 the where string (without WHERE)
	 * @param string $orderBy the other by string (with order by)
	 * @param DataBase $db the database (if null the database of system will be specify)
	 */	
	function __construct($where='', $orderBy = '', $db = null) {	
		$where = self::buildMoreWhere($where, ' deleted=0 ');
		parent::__construct('#__auctions', $where, $orderBy, $db);
	}	
	
}
?>